package Domain

import (
	"go-study/app/Model"
)

func GetTestNoteList() (Model.TestNoteResponse, error) {
	notes, err := Model.GetTestNoteList() // 直接调用Model层方法
	if err != nil {
		return Model.TestNoteResponse{
			Code: 500,
			Msg:  "Failed to get test notes",
			Data: nil,
		}, err
	}

	return Model.TestNoteResponse{
		Code: 0,
		Msg:  "success",
		Data: notes,
	}, nil
}
